<?php
class Admin_User extends CI_Controller {
    function __construct()
    {
        parent::__construct();
    }
 
    function index()
    {
        //Load view
        $this->load->view('admin_user');
    }
    public function login_action()
    {
        $this->load->model('user');
            $result=$this->user->login($_POST['username'],$_POST['password']);
                if($result)
                {
                    echo trim('pass');
                }
            else
            {
                echo 'Invalid username or password';
            }
    }
}
?>